import { createRouter, createWebHashHistory } from 'vue-router'


const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [

    { path: "/", redirect: "/home" },
    { path: "/home", name: "home", component: () => import("@/views/Home/Home.vue") },
    { path: "/login", name: "login", component: () => import("@/views/Users/Login.vue") },
    { path: "/reg", name: "reg", component: () => import("@/views/Users/Register.vue") },
    { path: "/cart", name: "cartList", component: () => import("@/views/Cart/CartList.vue") },
    { path: "/order", name: "ordertList", component: () => import("@/views/Order/OrderList.vue") },
    { path: "/goodsDetail", name: "goodsDetail",meta: { title: "详情", abc: "不知道" }, component: () => import("../views/Goods/GoodsDetail.vue") },
  ]
})

export default router
